import request from '@/utils/request'

// 发布
export function publish(data) {
  return request({
    url: '/sseController/publish',
    method: 'post',
    data: data
  })
}
//订阅
export function test(id) {
  return request({
    url: '/sseController/test/'+id,
    method: 'get'

  })
}

export function createRoom(data){
  return request({
    url: '/goController/createRoom',
    method: 'post',
    data: data
  })
}
